/**
 * Created by wzh on 2016/7/9.
 */
swan_pc.config(
    function($stateProvider){
        $stateProvider
            .state('opportunity', {
                parent:'site',
                //'abstract':true,
                url:'/opportunity',
                views:{
                    'content@':{
                        templateUrl:'scripts/components/myself/opportunity/opportunity.html',
                        controller:'OpportunityController'
                    }
                }
            })
            .state('opportunitylist', {
                parent:'opportunity',
                //'abstract':true,
                url:'/list',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/opportunity/opportunitylist/opportunitylist.html',
                        //controller:'OpportunityController'
                    }
                }
            })
            .state('addopportunity', {
                parent:'opportunity',
                //'abstract':true,
                url:'/add',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/opportunity/addopportunity/addopportunity.html',
                        //controller:'OpportunityController'
                    }
                }
            })
            .state('opportunitydetail', {
                parent:'opportunity',
                //'abstract':true,
                url:'/detail',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/opportunity/opportunitydetail/opportunitydetail.html',
                        //controller:'OpportunityController'
                    }
                }
            })
            .state('oppclip', {
                parent:'opportunity',
                //'abstract':true,
                url:'/clip',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/calendar/calendarshow/calendarshow.html',
                        controller:'CalShowController'
                    }
                }
            })
            .state('oppaddclip', {
                parent:'opportunity',
                //'abstract':true,
                url:'/addclip',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/calendar/addclip/addclip.html',
                        controller:'addClipController'
                    }
                }
            })
            .state('opptask', {
                parent:'opportunity',
                //'abstract':true,
                url:'/task',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/task/tasklistshow/tasklistshow.html',
                        controller:'TaskListController'
                    }
                }
            })
            .state('oppaddtask', {
                parent:'opportunity',
                //'abstract':true,
                url:'/addtask',
                views:{
                    'oppdetail@opportunity':{
                        templateUrl:'scripts/components/myself/task/addtask/addtask.html',
                        controller:'AddTaskController'
                    }
                }
            })
    })
